package com.mycompany.springcore2;
class Ninja {
    private Arma arma;

    public void setArma(Arma arma) {
        this.arma = arma;
    }
//    public Ninja(){
//        this.arma=new Katana();
//    }
    public void asesinar(Victima victima){
//        Katana  katana=new Katana();
//        katana.utilizar(victima);
        arma.utilizar(victima);
    }


}
